<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition template="/template.xhtml"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://java.sun.com/jsf/core" >
    <ui:define name="title">
        <h:outputText value="#{bundle.EditUserGroupTitle}"></h:outputText>
    </ui:define>
    <ui:define name="body">
        <h:form styleClass="form" rendered="#{userController.allowedGroups('1,2')}">
            <p:fieldset legend="Please fill the form below" id="user_edition" >
                <h:outputText value="#{userGroupController.current.grDesc}" styleClass="engraved"/>
                <br/>
                <p:separator/>
                <p:commandButton actionListener="#{userGroupController.update}" value="Update" />
                <p:spacer width="10"/>
                <p:commandButton ajax="false" action="#{userGroupController.prepareList}" value="Show All" immediate="true"/>
                <br/>
                <br/>
                <h:outputLabel value="Group Description:" for="groupDesc" />
                <p:inputText id="groupDesc" label="Group Description:" value="#{userGroupController.current.grDesc}" title="#{bundle.EditUserGroupTitle_grDesc}" required="true" requiredMessage="#{bundle.EditUserRequiredMessage_userLogin}"/>
                <br />
            </p:fieldset>
        </h:form>
    </ui:define>
</ui:composition>


